import localforage from "localforage";

const createStore = (name: string) =>
    localforage.createInstance({
        name,
    });

/** 存储的所有详细文件 */
export const files = createStore("ProPixel_files");
/** 这个是每个画板的缩略图 */
export const preview = createStore("ProPixel_preview");
/** 用户信息存储空间 */
export const user = createStore("ProPixel_user");
